<extend name="public@base"/>
block(name='main')
    .wrap
        ul.nav.nav-tabs
            li.nav-item: a.nav-link(href="{:url('nav/index')}") {:lang('ADMIN_NAV_INDEX')}
            li.nav-item: a.nav-link(href="{:url('nav/add')}") {:lang('ADMIN_NAV_ADD')}
            li.nav-item: a.nav-link.active {:lang('ADMIN_NAV_EDIT')}
        form.form-horizontal.js-ajax-form(method="post" action="{:url('nav/editPost')}")
            .form-group.form-row
                label.col-2.col-form-label.text-right
                    span.form-required
                    |名称:
                .col.col-lg-6
                    <input type="hidden" name="id" value="{$id}">
                    <input type="text" class="form-control" name="name" value="{$name}">
            .form-group.form-row
                label.col-2.col-form-label.text-right 备注:
                .col.col-lg-6
                    <textarea class="form-control" name="remark">{$remark}</textarea>
            .form-group.form-row
                label.col-2.col-form-label.text-right 主菜单:
                .col.col-lg-6
                    .checkbox
                        label
                            php $strMainMenuChecked=$is_main?"true":"false";
                            input(type="checkbox" name="is_main" value="1" data-checked="{$strMainMenuChecked}")
            .col-auto.offset-lg-2.btn-group
                button.btn.btn-sm.btn-primary.js-ajax-submit( type="submit" class="") {:lang("SAVE")}
                a.btn.btn-sm.btn-secondary(href="{:url('Nav/index')}") 返回